package com.jspgou.core.entity.base;

import java.io.Serializable;

import org.omg.CORBA.INITIALIZE;

import ch.qos.logback.core.rolling.helper.IntegerTokenConverter;

public abstract class BaseLog implements Serializable{
    public static String REF="Log";
    public static String REF_TIME="time";
    public static String REF_SITE="site";
    public static String REF_USER="user";
    public static String PROP_URL = "url";
	public static String PROP_IP = "ip";
	public static String PROP_CATEGORY = "category";
	public static String PROP_TITLE = "title";
	public static String PROP_CONTENT = "content";
	public static String PROP_ID = "id";
	
	
	
	//*constructors
	public BaseLog(){
		initialize();
	}
	
	public BaseLog(java.lang.Integer id){
    	this.setId(id);
    	initialize();
    }
    
	public BaseLog(
		java.lang.Integer id,
		java.lang.Integer category,
		java.util.Date time){
		
		this.setId(id);
		this.setCategory(category);
		this.setTime(time);
		initialize();
	}
	
	protected void initialize() {
	
	}
	
	private int hashCode=Integer.MIN_VALUE;
	
	
	
	
	//* primary key
	private java.lang.Integer id;
	
	//* fileds
	private java .lang.Integer category;
	private java.util.Date time;
	private java .lang.String ip;
	private java .lang.String url;
	private java .lang.String title; 
	private java .lang.String content; 
	
	//* many to one,日志功能
	private com.jspgou.cms.entity.base.BaseShopAdmin admin;
	private com.jspgou.core.entity.base.BaseWebsite website;
	
	

	
    public java.lang.Integer getId() {
		return id;
	}

	public void setId(java.lang.Integer id) {
		this.id = id;
	}

	public java.lang.Integer getCategory() {
		return category;
	}

	public void setCategory(java.lang.Integer category) {
		this.category = category;
	}

	public java.util.Date getTime() {
		return time;
	}

	public void setTime(java.util.Date time) {
		this.time = time;
	}

	public java.lang.String getIp() {
		return ip;
	}

	public void setIp(java.lang.String ip) {
		this.ip = ip;
	}

	public java.lang.String getUrl() {
		return url;
	}

	public void setUrl(java.lang.String url) {
		this.url = url;
	}

	public java.lang.String getTitle() {
		return title;
	}

	public void setTitle(java.lang.String title) {
		this.title = title;
	}

	public java.lang.String getContent() {
		return content;
	}

	public void setContent(java.lang.String content) {
		this.content = content;
	}

	public com.jspgou.cms.entity.base.BaseShopAdmin getAdmin() {
		return admin;
	}

	public void setAdmin(com.jspgou.cms.entity.base.BaseShopAdmin admin) {
		this.admin = admin;
	}

	public com.jspgou.core.entity.base.BaseWebsite getWebsite() {
		return website;
	}

	public void setWebsite(com.jspgou.core.entity.base.BaseWebsite website) {
		this.website = website;
	}

	
	
}
